﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="user-list.aspx.cs" Inherits="SsWeb._console.core.user_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <a href="application-list.aspx">
            应用列表
        </a>
        <a href="role-list.aspx">
            角色列表
        </a>
        <a href="org-list.aspx">
            组织机构
        </a>
    </div>
    <div>
        <h2>上传用户</h2>
        <label>用户数据文件(.xml)</label><asp:FileUpload ID="_ctlFileXml" runat="server" /><br />
        <asp:LinkButton ID="LinkButton1" runat="server" onclick="_ctlBtnImport_Click">上传导入</asp:LinkButton>
    </div>
    <div>
        <h2>添加新用户</h2>
        <label>
            Account</label>
        <asp:TextBox ID="_ctlEditAccount" runat="server"></asp:TextBox><br />
        <label>
            Name</label>
        <asp:TextBox ID="_ctlEditName" runat="server"></asp:TextBox><br />
        <label>
            Email</label>
        <asp:TextBox ID="_ctlEditEmail" runat="server"></asp:TextBox><br />
        <label>
            Phone</label>
        <asp:TextBox ID="_ctlEditPhone" runat="server"></asp:TextBox><br />
        <asp:Button ID="_ctlBtnSave" runat="server" Text="保存" OnClick="_ctlBtnSave_Click" />
    </div>
    <div>
        <h2>用户列表</h2>
        <asp:Repeater ID="_ctlGridUser" runat="server">
            <HeaderTemplate>
                <table>
                    <tr>
                        <th>
                            -
                        </th>
                        <th>
                            Name
                        </th>
                        <th>
                            Account
                        </th>
                        <th>
                            Email
                        </th>
                        <th>
                            Telephone
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <a href="?id=<%# Eval("Id") %>">选择</a>
                    </td>
                    <td>
                        <%# Eval("Id") %>
                    </td>
                    <td>
                        <%# Eval("Account") %>
                    </td>
                    <td>
                        <%# Eval("Email") %>
                    </td>
                    <td>
                        <%# Eval("Telphone") %>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    </form>
</body>
</html>
